package com.zcup.designer.behavior.chain;

public class ConcreteHandler2 extends Handler {

    @Override
    void handleRequest(int request) {
        if (request >= 10 && request < 100) {
            System.out.println(this.getClass().getName() + "\t handler");
        } else if (successor != null) {
            successor.handleRequest(request);
        }else {
            System.out.println("can not handle this request");
        }
    }
}
